# -*- coding: utf-8 -*-
import webapp2
import handler

from google.appengine.ext.webapp.util import run_wsgi_app


routes = [
    webapp2.Route(
        '/',
        handler=handler.ViewLists,
        name='show'),
    webapp2.Route(                    #добавление нового товара
        '/add_something',
        handler=handler.AddList,
        name='add'),
    webapp2.Route(                    #покупка товаров
        '/edit_something',
        handler=handler.EditList,
        name='edit'),
    webapp2.Route(                   #удаление списка товаров
        '/clear_everything',
        handler=handler.Clear,
        name='clear'),
]

application = webapp2.WSGIApplication(routes, debug=True)


def main():
    run_wsgi_app(application)


if __name__ == "__main__":
    main()